// 自动生成模板Reservation
package reservations

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

// reservation表 结构体  Reservation
type Reservation struct {
	global.GVA_MODEL
	ReservationSn   string   `json:"reservationSn" gorm:"column:reservation_sn;comment:预约号;size:100;"`
	PatientId       *int     `json:"patientId" form:"patientId" gorm:"column:patient_id;comment:患者编号;size:10;" binding:"required"`                    //患者名称
	ReservationObj  *string  `json:"reservationObj" form:"reservationObj" gorm:"column:reservation_obj;comment:预约项目;size:20;" binding:"required"`     //预约项目
	ReservationType *string  `json:"reservationType" form:"reservationType" gorm:"column:reservation_type;comment:预约号类型;size:20;" binding:"required"` //预约号类型
	Department      *int     `json:"department" form:"department" gorm:"column:department;comment:科室;size:10;"`                                       //科室
	PayType         *string  `json:"payType" form:"payType" gorm:"column:pay_type;comment:支付方式;size:20;" binding:"required"`                          //支付方式
	Price           *float64 `json:"price" form:"price" gorm:"column:price;comment:金额;size:10;"`                                                      //金额
	Menu            *string  `json:"menu" form:"menu" gorm:"column:menu;comment:备注说明;"`                                                               //备注说明
	CreatedBy       uint     `gorm:"column:created_by;comment:创建者"`
	UpdatedBy       uint     `gorm:"column:updated_by;comment:更新者"`
	DeletedBy       uint     `gorm:"column:deleted_by;comment:删除者"`
}

// TableName reservation表 Reservation自定义表名 reservation
func (Reservation) TableName() string {
	return "reservation"
}
